package com.heima.wemedia.controller.v1;

import com.heima.common.dtos.ResponseResult;
import com.heima.model.comment.dtos.CommentRepayDto;
import com.heima.user.feign.ApUserFeign;
import com.heima.wemedia.service.WmCommentRepayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: Xu
 * @Date: 2022/01/05/17:00
 */
@RestController
@RequestMapping("/api/v1/comment_repay/")
public class WmCommentRepayConntroller {
    @Autowired
    private ApUserFeign apUserFeign;
    @Autowired
    private MongoTemplate mongoTemplate;
    @Autowired
    private WmCommentRepayService wmCommentRepayService;


    @PostMapping("/save")
    public ResponseResult saveCommentRepay(@RequestBody CommentRepayDto dto){
       return          wmCommentRepayService.saveCommentRepay(dto);


    }



}
